<%@ page contentType="text/javascript; charset=ISO-8859-1" %>
<%@ page import="com.ctrlspace.model.*" %>
/* Copyright 2009 CtrlSpace Platform
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 * 		http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * 
 * Contributor(s):
 * 	Marc Obaldo (marcklaser@gmail.com)
 */
dojo.provide("ctrlspace.imports");
// Load required libraries
dojo.require("dojo.cache");
dojo.require("dojo.parser");
dojo.require("dojo.data.ItemFileReadStore");
dojo.require("dijit.Dialog");
dojo.require("dijit.Menu");
dojo.require("dijit.MenuBar");
dojo.require("dijit.MenuBarItem");
dojo.require("dijit.MenuItem");
dojo.require("dijit.PopupMenuBarItem");
dojo.require("dijit.PopupMenuItem");
dojo.require("dijit.Toolbar");
dojo.require("dijit.Tree");
dojo.require("dijit.form.Button");
dojo.require("dijit.form.TextBox");
dojo.require("dijit.form.ValidationTextBox");
dojo.require("dijit.layout.ContentPane");
dojo.require("dijit.layout.BorderContainer");
dojo.require("dijit.layout.LayoutContainer");
dojo.require("dijit.layout.SplitContainer");
dojo.require("dijit.layout.TabContainer");
dojo.require("dojox.widget.FisheyeList");
dojo.require("dojox.layout.ExpandoPane");

// Load ctrlspace libraries
dojo.registerModulePath("ctrlspace", "../../ctrlspace");
dojo.registerModulePath("ctrlspace.workspace", "../../ctrlspace/workspace");
dojo.registerModulePath("ctrlspace.ui", "../../ctrlspace/ui");
dojo.registerModulePath("ctrlspace.core", "../../ctrlspace/core");
dojo.registerModulePath("ctrlspace.plugins", "../../../plugins/ctrlspace");
dojo.require("ctrlspace.config");
dojo.require("ctrlspace.IDE");
dojo.require("ctrlspace.core.Plugin");

// Begin
var IDE = {};
dojo.addOnLoad(function() {
	<% User currentUser = (User) session.getAttribute(HttpAttributes.CURRENT_USER); %>
	IDE = new ctrlspace.IDE(<%= currentUser.toJSONString() %>);
});